package com.yh.csx.crm.core.enums;

/**
 * UploadFileSuffixEnum class
 *
 * @author huyalin
 * @date 2019/3/20
 */

public enum UploadFileSuffixEnum {
    JPG,JPEG,PNG,PDF;
    public static boolean valid(String suffix) {
        for (UploadFileSuffixEnum uploadFileSuffixEnum: UploadFileSuffixEnum.values()) {
            if (uploadFileSuffixEnum.toString().equalsIgnoreCase(suffix)) {
                return true;
            }
        }
        return false;
    }
}
